package br.com.massai.model.entity.file;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "HEADER_FILE")
public class HeaderFile implements Serializable {

	private static final long serialVersionUID = -9182712121760759811L;

	@Id
	@SequenceGenerator(name = "seqHeaderFile", sequenceName = "seq_header_file", allocationSize = 1)
	@GeneratedValue(generator = "seqHeaderFile", strategy = GenerationType.SEQUENCE)
	private Long id;

	@Column(name = "EMP_CODIGO", length = 4, columnDefinition = "VARCHAR(4)")
	private String empCodigo;

	@Column(name = "COMPETENCIA", length = 6, columnDefinition = "VARCHAR(6)")
	private String competencia;

	@Column(name = "FOLHA", length = 6, columnDefinition = "VARCHAR(6)")
	private String folha;

	@Column(name = "TIPO_FOLHA", columnDefinition = "INT")
	private Integer tipoFolha;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmpCodigo() {
		return empCodigo;
	}

	public void setEmpCodigo(String empCodigo) {
		this.empCodigo = empCodigo;
	}

	public String getCompetencia() {
		return competencia;
	}

	public void setCompetencia(String competencia) {
		this.competencia = competencia;
	}

	public String getFolha() {
		return folha;
	}

	public void setFolha(String folha) {
		this.folha = folha;
	}

	public Integer getTipoFolha() {
		return tipoFolha;
	}

	public void setTipoFolha(Integer tipoFolha) {
		this.tipoFolha = tipoFolha;
	}
}